using System;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Administration;

namespace Starznet.SharePoint.SPDAT.Receivers
{
    public class StarznetSZAccelerateFeatureReceiver : SPFeatureReceiver
    {
        public override void FeatureActivated(SPFeatureReceiverProperties properties)
        {
            SPSite oSite = properties.Feature.Parent as SPSite;

            //Ensure the sitemap file is merged and resource files are deployed to the
            //current web application virtual directory
            oSite.WebApplication.WebService.ApplyApplicationContentToLocalServer();
        }

        public override void FeatureDeactivating(SPFeatureReceiverProperties properties)
        {
        }

        public override void FeatureInstalled(SPFeatureReceiverProperties properties)
        {
        }

        public override void FeatureUninstalling(SPFeatureReceiverProperties properties)
        {
        }
    }
}
